cmake_minimum_required(VERSION 3.20)


project(serialization LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)

add_compile_options(-g)

#add_compile_definitions(BOOST_ASIO_ENABLE_HANDLER_TRACKING)

find_package(Boost COMPONENTS context system thread serialization REQUIRED) 

add_executable(server "./src/server.cpp")
add_executable(client "./src/client.cpp")

target_include_directories(server PRIVATE
    ./include
)

target_include_directories(client PRIVATE
    ./include
)

target_link_libraries(server PRIVATE
    ${Boost_LIBRARIES}
)
target_link_libraries(client PRIVATE
    ${Boost_LIBRARIES}
)